# -*- coding:utf-8 -*-
"""
this is web app init setting
"""
import tornado.web as web
from config.cfg import settings
from router.urls import routes

class WebApplcation(web.Application):
    """
    the web app
    init router
    init settings
    """
    def __init__(self):
        handlers = routes
        configs = settings.copy()
        print "init application..."
        web.Application.__init__(self, handlers, **configs)
